package com.swinw.asumall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swinw.asumall.product.vo.Catalog2LaveVo;
import com.swinw.common.utils.PageUtils;
import com.swinw.asumall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author 罗义华
 * @email 2407550328@qq.com
 * @date 2020-10-04 12:33:33
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listTree();

    void removeMenusByIds(List<Long> asList);

    Long[] findCatalogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    CategoryEntity selectById(Long catalogId);

    List<CategoryEntity> catelogLaveOne(Long catId);

    Map<String, List<Catalog2LaveVo>> getCatalogMap();
}

